#include "mediator.h"
#include "customer.h"

void CHouseAgent::setHouseOwnerA(CHouseOwnerA *pHouseOwnerA)
{
	m_pHouseOwnerA = pHouseOwnerA;
}

void CHouseAgent::setHouseOwnerB(CHouseOwnerB *pHouseOwnerB)
{
	m_pHouseOwnerB = pHouseOwnerB;
}

void CHouseAgent::SendMsg(string msg, CICustomer *pCustomer)
{
	if (pCustomer == m_pHouseOwnerA)
	{

		m_pHouseOwnerA->Notify(msg);
	}

	if (pCustomer == m_pHouseOwnerB)
	{

		m_pHouseOwnerB->Notify(msg);
	}
}

